<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>定金收据</title>
</head>
<style>

</style>
<body>
<div id="div1">
<!--    <DIV style="LINE-HEIGHT: 30px" class=size16 align=center><STRONG><font  style="font-size: 7mm">销售结算单</font></STRONG></DIV>-->
    <TABLE border=1 cellSpacing=0 cellPadding=0 width="100%" bordercolor="#333333">
        <TBODY>
        <tr>
            <td rowspan="1" colspan="12" style="text-align: left;">
                <img src="../../../../static/images/logo.jpg" />
            </td>
        </tr>
        <tr>
            <td colspan="12" style="font-size: 7mm;text-align: center">销售结算单</td>
        </tr>
        <tr>
            <td colspan="12" style="height: 20pt;"> </td>
        </tr>
        <tr>
            <td colspan="12" style="text-align: left;padding-left: 0.5%;">单名名称:&nbsp;&nbsp;济南恭德陵园</td>
        </tr>
        <tr>
            <td colspan="12">
                <div style="width: 32%;" class="table6-div">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址:&nbsp;&nbsp;济南市柳埠镇柳东村 </div>
                <div style="width: 32%;" class="table6-div">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话:&nbsp;&nbsp;0531-82841666 </div>
                <div style="width: 34%;" class="table6-div">传&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;真:&nbsp;&nbsp;</div>
            </td>
        </tr>
        <tr>
            <td colspan="12" style="text-align: left;padding-left: 0.5%;">网&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址:&nbsp;&nbsp;www.sdgdly.com</td>
        </tr>
        <tr>
            <td>客户姓名:</td>
            <td colspan="2">{$result['buyer_name']}</td>
            <td>证件类型</td>
            <td>身份证</td>
            <td></td>
            <td>证件号码:</td>
            <td colspan="5">{$result['customer_account']}</td>
        </tr>
        <tr>
            <td>联系地址:</td>
            <td colspan="11">{$result['customer_address']}</td>
        </tr>
        <tr>
            <td>合同编号:</td>
            <td colspan="2">{$result['tomb_region']}</td>
            <td>墓位编号:</td>
            <td colspan="2">{$result['tomb_num']}</td>
            <td>具体位置</td>
            <td colspan="5">{$result['tomb_region']}</td>
        </tr>
        <tr>
            <td>墓穴规制:</td>
            <td colspan="2">{$result['tomb_regulation_name']}</td>
            <td style="color: red">墓穴状态:</td>
            <td style="color: red" colspan="2">{$result['pro_status']}</td>
            <td style="color: red">操&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作:</td>
            <td style="color: red">{$result['col_status_name']}</td>
            <td colspan="4"></td>
        </tr>
        <tr>
            <td colspan="12" style="padding-left: 10mm;text-align: left">购买结算</td>
        </tr>
        </TBODY>
    </TABLE>
</div>
<div id="div2">
    <TABLE border=1 cellSpacing=0 cellPadding=1 width="100%" style="border-collapse:collapse" bordercolor="#333333">
        <thead>
        <TR>
            <td>序号</td>
            <td >项目名称</td>
            <td>数量</td>
            <td>单位</td>
            <td>单价(元)</td>
            <td>优惠</td>
            <td>金额(元)</td>
            <td colspan="4">备注</td>
        </thead>
        <TBODY>
        <tr>
            <TD >&nbsp;</TD>
            <TD >名称38</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <td colspan="4">备注</td>
        </tr>
        <tr>
            <TD >&nbsp;</TD>
            <TD >名称39</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD>&nbsp;</TD>
            <td colspan="4">备注</td>
        </tr>
        <tr>
            <TD >&nbsp;</TD>
            <TD >名称40</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <td colspan="4">备注</td>
        </tr>
        <tr>
            <TD >&nbsp;</TD>
            <TD >名称41</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD>&nbsp;</TD>
            <td colspan="4">备注</td>
        </tr>
        <tr>
            <TD >&nbsp;</TD>
            <TD >名称42</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >123</TD>
        </tr>
        <tr>
            <TD >&nbsp;</TD>
            <TD >名称43</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD>&nbsp;</TD>
            <td colspan="4">备注</td>
        </tr>
        <tr>
            <TD >&nbsp;</TD>
            <TD >名称44</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >&nbsp;</TD>
            <TD >10</TD>
            <td colspan="4">备注</td>
        </tr>
        <tfoot>
        <tr>
            <TD ><b>表格页脚</b></TD>
            <TD ><b>本页动态合计</b></TD>
            <TD ><b>&nbsp;</b></TD>
            <TD tdata="pageNO" format="#" align="left">
                <p align="center"><b>第<font color="#0000FF">#</font>页</b></p>
            </TD>
            <TD tdata="pageCount" format="#" align="left">
                <p align="center"><b>总<font color="#0000FF">##</font>页</b></TD>
            <TD width="14%" align="right">　</TD>
            <TD width="19%" tdata="subSum" format="#,##0.00" align="right"><font color="#0000FF">###元</font></TD>
        </tr>
        </tfoot>
    </TABLE>
</div>
<p>----------------------div3:------------------------------------------------------------------------------------</p>
<div id="div3">
    <DIV style="LINE-HEIGHT: 30px"
         align=center><font color="#0000FF">感谢您对我们雅瑞专卖店的支持，(发货单01的表格外“页脚”，紧跟表格)</font></DIV>
</div>
<div id="div=1">
    <TABLE border=1 cellSpacing=0 cellPadding=1 width="100%" style="border-collapse:collapse" bordercolor="#333333">
<!--        <thead>-->

<!--    <table style="  width: 241mm;height: 200mm;border-collapse: collapse;table-layout:fixed" border="1px">-->
        <thead>
            <tr>
                <td rowspan="1" colspan="12" style="text-align: left;">
                    <img src="../../../../static/images/logo.jpg" />
                </td>
            </tr>
            <tr>
                <td colspan="12" style="font-size: 7mm;text-align: center">销售结算单</td>
            </tr>
            <tr>
                <td colspan="12" style="height: 20pt;"> </td>
            </tr>
            <tr>
                <td colspan="12" style="text-align: left;padding-left: 0.5%;">单名名称:&nbsp;&nbsp;济南恭德陵园</td>
            </tr>
            <tr>
                <td colspan="12">
                    <div style="width: 32%;" class="table6-div">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址:&nbsp;&nbsp;济南市柳埠镇柳东村 </div>
                    <div style="width: 32%;" class="table6-div">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话:&nbsp;&nbsp;0531-82841666 </div>
                    <div style="width: 34%;" class="table6-div">传&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;真:&nbsp;&nbsp;</div>
                </td>
            </tr>
            <tr>
                <td colspan="12" style="text-align: left;padding-left: 0.5%;">网&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址:&nbsp;&nbsp;www.sdgdly.com</td>
            </tr>
            <tr>
                <td>客户姓名:</td>
                <td colspan="2">{$result['buyer_name']}</td>
                <td>证件类型</td>
                <td>身份证</td>
                <td></td>
                <td>证件号码:</td>
                <td colspan="5">{$result['customer_account']}</td>
            </tr>
            <tr>
                <td>联系地址:</td>
                <td colspan="11">{$result['customer_address']}</td>
            </tr>
            <tr>
                <td>合同编号:</td>
                <td colspan="2">{$result['contract_sn']}</td>
                <td>墓位编号:</td>
                <td colspan="2">{$result['tomb_num']}</td>
                <td>具体位置</td>
                <td colspan="5">{$result['tomb_region']}</td>
            </tr>
            <tr>
                <td>墓穴规制:</td>
                <td colspan="2">{$result['tomb_regulation_name']}</td>
                <td style="color: red">墓穴状态:</td>
                <td style="color: red" colspan="2">{$result['pro_status']}</td>
                <td style="color: red">操&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作:</td>
                <td style="color: red">{$result['col_status_name']}</td>
                <td colspan="4"></td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 10mm;text-align: left">购买结算</td>
            </tr>
            <tr>
                <td>序号</td>
                <td colspan="2">项目名称</td>
                <td>数量</td>
                <td>单位</td>
                <td>单价(元)</td>
                <td>优惠</td>
                <td>金额(元)</td>
                <td colspan="4">备注</td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td colspan="2">购墓</td>
                <td>1</td>
                <td>套</td>
                <td>{$result['selling_price']}</td>
                <td>{$result['selling_price']-$result['closing_price']}</td>
                <td>{$result['closing_price']}</td>
                <td colspan="4"></td>
            </tr>
            <foreach name="goods" item="vo">
            <tr>
                <td>{$key+2}</td>
                <td colspan="2">{$vo['goods_name']}</td>
                <td>{$vo['num']}</td>
                <td></td>
                <td>{$vo['goods_price']}</td>
                <td>{$vo['discount_price']}</td>
                <td>{$vo['total_price']}</td>
                <td colspan="4"></td>
            </tr>
            </foreach>
            <tr>
                <td></td>
                <td colspan="2">购墓</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td colspan="4"></td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="12" style="padding-left: 10mm;text-align: left">质量保证</td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 3mm;text-align: left">1.客户验收购买的墓穴墓碑，质保期为<div style="width: 8mm;height: 80%;display: inline-block;vertical-align: top;border-bottom: 1px solid black"></div>年。</td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 3mm;text-align: left">2.质保期内凡产品质量问题包换包修，质保期从《墓穴安葬证》交付客户日之起计算。</td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 3mm;text-align: left">3.墓穴管理维护期20年为一期，以首位逝者使用之日起计算。</td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 3mm;text-align: left">4.质保范围以墓碑原件为准，客户单独购买的附件不在质保范围之中。</td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 3mm;text-align: left">5.维保更换墓碑新构件/新产品执行<div style="width: 8mm;height: 80%;display: inline-block;vertical-align: top;border-bottom: 1px solid black"></div>年质保期，原墓碑构件维修后不再执行质保。</td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 3mm;text-align: left">6.客户全款购墓不包含刻字、贴金、瓷像、落葬等费用与服务，请凭《墓穴安葬证》办理以上相关售后业务。</td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 3mm;text-align: left"></td>
            </tr>
            <tr>
                <td colspan="12" style="padding-left: 3mm;text-align: left;font-weight: 600">注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;销售结算单打印，定金结算单作废</td>
            </tr>
            <tr>
                <td colspan="3">经办人：颜志文</td>
                <td></td>
                <td colspan="3">收款人：颜志文</td>
                <td>客户签名:</td>
                <td colspan="4" style="padding-right: 2mm">
                    <div style="float: right;">日期：2017.1.18</div>
                </td>
            </tr>
        </tfoot>
    </table>
</div>
<style> table,td,th {border: 1px solid black;border-style: solid;border-collapse: collapse}</style>
<div id="div_1">
<table border="1">
    <tr>
        <td rowspan="1" colspan="12" style="text-align: left;">
            <img src="../../../../static/images/logo.jpg" />
        </td>
    </tr>
    <tr>
        <td colspan="12" style="font-size: 7mm;text-align: center">销售结算单</td>
    </tr>
    <tr>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></font></td>
        <td></td>
    </tr>
</table>
</div>

<a href="javascript:prn1_preview()">打印预览</a>

<script type="text/javascript" src="__STATIC__/js/lodop/LodopFuncs.js?v={:time()}"></script>
<script language="javascript" type="text/javascript">
    var LODOP; //声明为全局变量
    function prn1_preview() {
        LODOP=getLodop();
        // LODOP.PRINT_INIT("");
        LODOP.PRINT_INITA(10,10,754,453,"济南恭德林园寄存服务单");

        // LODOP.SET_PRINTER_INDEX("EPSON LQ-520K ESC/P2");//指定打印机
        // LODOP.SET_PRINT_PAGESIZE(0,0,0,"24.13*13.97-打印单据");//指定纸张
        LODOP.SET_PRINT_PAGESIZE(0,0,0,"24.1*279.4-结算单");//指定纸张
        LODOP.SET_PRINT_MODE("AUTO_CLOSE_PREWINDOW",true);


        var strStyle="<style> table,td,th {border-width: 1px;border-style: solid;border-collapse: collapse}</style>"
        LODOP.ADD_PRINT_TABLE(128,"5%","90%",314,strStyle+document.getElementById("div2").innerHTML);
        LODOP.SET_PRINT_STYLEA(0,"Vorient",3);
        LODOP.ADD_PRINT_HTM(26,"5%","90%",109,document.getElementById("div1").innerHTML);
        LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
        LODOP.SET_PRINT_STYLEA(0,"LinkedItem",1);
        LODOP.ADD_PRINT_HTM(444,"5%","90%",54,document.getElementById("div3").innerHTML);
        LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
        LODOP.SET_PRINT_STYLEA(0,"LinkedItem",1);
        LODOP.NewPageA();
        LODOP.ADD_PRINT_TABLE(128,"5%","90%",328,strStyle+document.getElementById("div2").innerHTML);


        //
        // // var strStyle="<style> table,td,th {border-width: 1px;border-style: solid;border-collapse: collapse}</style>"
        // // LODOP.ADD_PRINT_TABLE("3.75pt","2.25pt","624pt","663.75pt",strStyle+document.getElementById("div1").innerHTML);
        //
        // LODOP.ADD_PRINT_HTM("89.25pt","532.5pt","78pt","14.25pt","(超文本1的HTML代码内容)");
        // LODOP.ADD_PRINT_HTM("89.25pt","532.5pt","78pt","14.25pt","(超文本2的HTML代码内容)");
        // LODOP.ADD_PRINT_HTM("89.25pt","532.5pt","78pt","14.25pt",document.getElementById("div_1").innerHTML);



        // LODOP.ADD_PRINT_HTM("89.25pt","532.5pt","78pt","14.25pt","<font color='#0000ff' format='ChineseNum'><span tdata='pageNO'>第##页</span>/<span tdata='pageCount'>共##页</span></font>");
        LODOP.SET_PRINT_STYLEA(0,"ItemType",1);


        // LODOP.SET_PREVIEW_WINDOW(0,1,0,800,600,"");//打印前弹出选择打印机的对话框
        // LODOP.SET_PRINT_MODE("AUTO_CLOSE_PREWINDOW",1);//打印后自动关闭预览窗口
        // LODOP.PREVIEW();
        // LODOP.PRINT_SETUP();//打印维护
        LODOP.PRINT_DESIGN();//打印设计
    };
</script>
</body>
</html>
